package com.ztesoft.sca.service;

import java.util.List;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Component;

import com.ztesoft.sca.dao.AiChatAudioDao;
import com.ztesoft.sca.model.aichat.AiChatDto;

@Component
public class AiChatAudioServiceImpl implements AiChatAudioService{
  @Autowired
  private AiChatAudioDao aiChatAudioDao;
  
  @Override
  public List<AiChatDto>  listAiChatAudio(long id, String type, int from, int size) throws Exception {
      return aiChatAudioDao.listAiChatAudio(id,type,from,size);
  }
  @Override
  public void insertAiChatAudio(AiChatDto aiChat) throws Exception {
	  aiChatAudioDao.insertAiChatAudio(aiChat);
  }
}



